﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LittleLove.Base
{
    public class CalendarDB
    {
        public static Screen CurrentScreen;
        public static int FirstYear = (int)Enum.GetValues(typeof(Years)).Cast<Years>().Min();
        public static int LastYear = (int)Enum.GetValues(typeof(Years)).Cast<Years>().Max();

        public enum Years : int 
        {
            YEAR_2012 = 2012,
            YEAR_2013 = 2013,
            YEAR_2014 = 2014,
        };

        public static void setFirstYear()
        {
            CurrentScreen = new Screen(Properties.Resources.calendar2012_1, 2012);
        }

        public static void setSecondEvent()
        {
            CurrentScreen = new Screen(Properties.Resources.calendar2013, 2013);
        }

        public static void setThirdEvent()
        {
            CurrentScreen = new Screen(Properties.Resources.calendar2014, 2014);
        }

        public static Screen getScreen(Years year)
        {
            switch (year)
            {
                case Years.YEAR_2012:
                    setFirstYear();
                    break;
                case Years.YEAR_2013:
                    setSecondEvent();
                    break;
                case Years.YEAR_2014:
                    setThirdEvent();
                    break;
                default:
                    break;
            }
            return CurrentScreen;
        }
    }
}
